#pragma once

#include "../umlmodel_global.h"

#include "UMLAssociationOrConnectorOrLinkShapeKind.h"
#include "UMLShape.h"

namespace uml {

/// <summary>
/// UMLAssociationOrConnectorOrLinkShape
/// Shows shapes for binary relationships.
/// </summary>
class UMLMODEL_EXPORT UMLAssociationOrConnectorOrLinkShape : public UMLShape {

public: // Constructors and destructors
    explicit UMLAssociationOrConnectorOrLinkShape(const QString& umlType="uml::UMLAssociationOrConnectorOrLinkShape");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// kind getter
    /// </summary>
    UMLAssociationOrConnectorOrLinkShapeKind kind() const;

    /// <summary>
    /// kind setter
    /// </summary>
    void setKind(UMLAssociationOrConnectorOrLinkShapeKind value);

private: // Fields
    /// <summary>
    /// kind
    /// </summary>
    UMLAssociationOrConnectorOrLinkShapeKind kind_ = UMLAssociationOrConnectorOrLinkShapeKind::kdiamond;

};

} // namespace uml
